import request from './request.js'

const api = {}

// 登录相关
api.AppWxLogin = params => request.globalRequest('/api/Login/WxLogin', 'POST', params)

api.WeChatWxLogin = params => request.globalRequest('/api/Login/WeChatWxLogin', 'POST', params)

api.PhoneLogin = params => request.globalRequest('/api/Login/NewPhoneLogin', 'POST', params)

api.PhoneGetCode = params => request.globalRequest('/api/Login/PhoneGetCode', 'POST', params)

api.WxIosLogin = params => request.globalRequest('/api/Login/WxIosLogin', 'POST', params)

api.WeChatBinding =  params => request.globalRequest('/api/Login/WeChatBinding', 'POST', params)

// app 微信登录
api.ExemptWxLogin = params => request.globalRequest('/api/Login/ExemptWxLogin', 'POST', params)

// 图片上传
api.UpMajorImg = params => request.globalRequest('/api/Upimg/UpMajorImg', 'POST', params)

api.UpSkuImg = params => request.globalRequest('/api/Upimg/UpSkuImg', 'POST', params)

api.UpViceImg = params => request.globalRequest('/api/Upimg/UpViceImg', 'POST', params)

api.AddGoodsImg = params => request.globalRequest('/api/Goods/AddGoodsImg', 'POST', params)

// 商品管理
api.StoreGoodsList = params => request.globalRequest('/api/Goods/StoreGoodsList', 'POST', params)

api.AddGoods = params => request.globalRequest('/api/Goods/AddGoods', 'POST', params)

api.DelSku = params => request.globalRequest('/api/Goods/DelSku', 'POST', params)

api.DelGoodsImg = params => request.globalRequest('/api/Goods/DelGoodsImg', 'POST', params)

api.UpGoods = params => request.globalRequest('/api/Goods/UpGoods', 'POST', params)

api.SoldOutGoods = params => request.globalRequest('/api/Goods/SoldOutGoods', 'POST', params)

api.DelateGoods = params => request.globalRequest('/api/Goods/DelateGoods', 'POST', params)

//商品分类管理
api.StoreGoodsClassList = params => request.globalRequest('/api/Goods/StoreGoodsClassList', 'POST', params,1)

api.AddGoodsClass = params => request.globalRequest('/api/Goods/AddGoodsClass', 'POST', params)

api.UpGoodsClass = params => request.globalRequest('/api/Goods/UpGoodsClass', 'POST', params)

api.DelGoodsClass = params => request.globalRequest('/api/Goods/DelGoodsClass', 'POST', params)

// 案例管理
api.CaseList = params => request.globalRequest('/api/Example/CaseList', 'POST', params)

api.CaseInfo = params => request.globalRequest('/api/Example/CaseInfo', 'POST', params)

api.AddCase = params => request.globalRequest('/api/Example/AddCase', 'POST', params)

api.CaseClassJson = params => request.globalRequest('/api/Example/CaseClassJson', 'POST', params)

api.CaseSpaceJson = params => request.globalRequest('/api/Example/CaseSpaceJson', 'POST', params)

api.AddCaseImg = params => request.globalRequest('/api/Example/AddCaseImg', 'POST', params)

api.DelCaseImg = params => request.globalRequest('/api/Example/DelCaseImg', 'POST', params)

api.CaseGoodsList = params => request.globalRequest('/api/Goods/CaseGoodsList', 'POST', params)

api.GoodsList = params => request.globalRequest('/api/Example/GoodsList', 'POST', params)

api.UpCase = params => request.globalRequest('/api/Example/UpCase', 'POST', params)

api.DelateCase = params => request.globalRequest('/api/Example/DelateCase', 'POST', params)

api.AddCaseGoods = params => request.globalRequest('/api/Example/AddCaseGoods', 'POST', params)

api.DelateCaseGoods = params => request.globalRequest('/api/Example/DelateCaseGoods', 'POST', params)

// 设计师管理
api.StylistList = params => request.globalRequest('/api/Stylist/StylistList', 'POST', params)

api.DelStylistImg = params => request.globalRequest('/api/Stylist/DelStylistImg', 'POST', params)

api.AddStylist = params => request.globalRequest('/api/Stylist/AddStylist', 'POST', params)

api.UpStylist = params => request.globalRequest('/api/Stylist/UpStylist', 'POST', params)

api.OutStylist = params => request.globalRequest('/api/Stylist/OutStylist', 'POST', params)

api.AddStylistImg = params => request.globalRequest('/api/Stylist/AddStylistImg', 'POST', params)

// 视频管理
api.VideoList = params => request.globalRequest('/api/Video/VideoList', 'POST', params)

api.AddVideo = params => request.globalRequest('/api/Video/AddVideo', 'POST', params)

api.OutVideo = params => request.globalRequest('/api/Video/OutVideo', 'POST', params)

api.UpVideo = params => request.globalRequest('/api/Video/UpVideo', 'POST', params)

// 轮播管理
api.slideshow_list = params => request.globalRequest('/api/Slideshow/slideshow_list', 'POST', params)

api.Slideshow_add = params => request.globalRequest('/api/Slideshow/Add', 'POST', params)

api.Slideshow_Delate = params => request.globalRequest('/api/Slideshow/Delate', 'POST', params)

api.Slideshow_Up = params => request.globalRequest('/api/Slideshow/Up', 'POST', params)

// 订单管理
api.StockOrderList = params => request.globalRequest('/api/Myorder/StockOrderList', 'POST', params)

api.StockOrderInfo = params => request.globalRequest('/api/Myorder/StockOrderInfo', 'POST', params)

api.OrderStoreConfirm = params => request.globalRequest('/api/Myorder/OrderStoreConfirm', 'POST', params)

api.OrderDeliver = params => request.globalRequest('/api/Myorder/OrderDeliver', 'POST', params)

api.OrderAffirm = params => request.globalRequest('/api/Myorder/OrderAffirm', 'POST', params)

// 资讯
api.informationList = params => request.globalRequest('/api/Information/informationList', 'POST', params)

api.informationInfo = params => request.globalRequest('/api/Information/informationInfo', 'POST', params)

// 数据
//-----订单数据-----
api.OrderContrastData = params => request.globalRequest('/api/Data/OrderContrastData', 'POST', params)
//-----业绩数据-----
api.MoneyContrastData = params => request.globalRequest('/api/Data/MoneyContrastData', 'POST', params)
//-----营收详情-----
api.AdmindataMoneyList = params => request.globalRequest('/api/Data/MoneyList', 'POST', params)
//-----用户数据-----
api.UserContrastData = params => request.globalRequest('/api/Data/UserContrastData', 'POST', params)
//-----商品数据-----
api.GoodsContrastData = params => request.globalRequest('/api/Data/GoodsContrastData', 'POST', params)

// 首页
api.GetStoreMoney = params => request.globalRequest('/api/Money/GetStoreMoney', 'POST', params)

api.HomeGoodsData = params => request.globalRequest('/api/Data/HomeGoodsData', 'POST', params)

api.UserAllData = params => request.globalRequest('/api/Data/UserAllData', 'POST', params)

api.OrderListData = params => request.globalRequest('/api/Data/OrderListData', 'POST', params)

api.BrowseList = params => request.globalRequest('/api/Browse/BrowseList', 'POST', params)

api.BrowseUserList = params => request.globalRequest('/api/Browse/BrowseUserList', 'POST', params)

api.BrowseItems = params => request.globalRequest('/api/Browse/BrowseItems', 'POST', params)

// 员工管理
api.StaffLists = params => request.globalRequest('/api/Staff/Lists', 'POST', params)

api.StaffAdd = params => request.globalRequest('/api/Staff/Add', 'POST', params)

api.UserList = params => request.globalRequest('/api/User/UserList', 'POST', params)

api.StaffCount = params => request.globalRequest('/api/Staff/StaffCount', 'POST', params)

api.StaffDelate = params => request.globalRequest('/api/Staff/Delate', 'POST', params)

// 店铺相关
api.StoreDetail = params => request.globalRequest('/api/Store/Lists', 'POST', params)

api.StoreUp = params => request.globalRequest('/api/Store/Up', 'POST', params)

api.StoreDelGoodsImg = params => request.globalRequest('/api/Store/DelGoodsImg', 'POST', params)

// 海报
api.PosterLists = params => request.globalRequest('/api/poster/Lists', 'POST', params)

api.PosterAdd = params => request.globalRequest('/api/Poster/Add', 'POST', params)

api.PosterDelate = params => request.globalRequest('/api/Poster/Delate', 'POST', params)

// 个人信息
api.UserInfo = params => request.globalRequest('/api/User/UserInfo', 'POST', params)

// 个人二维码
api.GetQRcode = params => request.globalRequest('/api/Qrcodes/app_create_qr', 'POST', params)

// 钱包
api.MyWallet = params => request.globalRequest('/api/Wallet/MyWallet', 'POST', params)

api.BindingWallet = params => request.globalRequest('/api/Wallet/BindingWallet', 'POST', params)

api.UpPrivateKey = params => request.globalRequest('/api/Wallet/UpPrivateKey', 'POST', params)

api.WalletDetailed = params => request.globalRequest('/api/Wallet/WalletDetailed', 'POST', params)

api.Verification = params => request.globalRequest('/api/Code/Verification', 'POST', params)

api.WalletWithdrawal = params => request.globalRequest('/api/Wallet/WalletWithdrawal', 'POST', params)

api.WithdrawalLog = params => request.globalRequest('/api/Wallet/WithdrawalLog', 'POST', params)

api.UpWalletPsd = params => request.globalRequest('/api/Wallet/UpWalletPsd', 'POST', params)

// 我的推广
api.ActivityList = params => request.globalRequest('/api/Activity/ActivityList', 'POST', params)

// 首页分享设置
api.StoreUpData = params => request.globalRequest('/api/Store/UpData', 'POST', params)

// 商家成长
api.GrowLists = params => request.globalRequest('/api/Grow/Lists', 'POST', params)

// 平台商品
api.PlatformGoodsLists = params => request.globalRequest('/api/Platform/PlatformGoodsLists', 'POST', params)

api.GoodsClassList = params => request.globalRequest('/api/Platform/GoodsClassList', 'POST', params)

api.PlatformLists = params => request.globalRequest('/api/Platform/Lists', 'POST', params)

api.PlatformAdd = params => request.globalRequest('/api/Platform/Add', 'POST', params)

api.PlatformDelate = params => request.globalRequest('/api/Platform/Delate', 'POST', params)

api.PlatformAddGoods = params => request.globalRequest('/api/Platform/AddGoods', 'POST', params)

api.PlatformOutGoods = params => request.globalRequest('/api/Platform/OutGoods', 'POST', params)

api.PlatformDelateGoods = params => request.globalRequest('/api/Platform/DelateGoods', 'POST', params)

// 商家仓库地址
api.AddressList = params => request.globalRequest('/api/Address/AddressList', 'POST', params)

api.AddressAdd = params => request.globalRequest('/api/Address/AddressAdd', 'POST', params)

api.AddressUpdate = params => request.globalRequest('/api/Address/AddressUpdate', 'POST', params)

// 优惠券列表
api.SelectCoupon = params => request.globalRequest('/api/Order/SelectCoupon', 'POST', params)

// 支付
api.againPay = params => request.globalRequest('/api/Order/againPay', 'POST', params)

// 审核api
api.HomeWeChat = params => request.globalRequest('/api/Home/WeChat', 'POST', params)

// 供应商申请
api.FactoryAdd = params => request.globalRequest('/api/Factory/Add', 'POST', params)

// 签约支付
api.OrderStorePay = params => request.globalRequest('/api/Order/StorePay', 'POST', params)

// 我的合同
api.MyContract = params => request.globalRequest('/api/Contract/MyContract', 'POST', params)

api.appContract = params => request.globalRequest('/api/Contract/Contract', 'POST', params)

// 绑定微信或手机号码
api.NewAppBinding = params => request.globalRequest('/api/Login/NewAppBinding', 'POST', params)

// app更新
api.appUpdate = params => request.globalRequest('/api/Appupdate/app_update', 'POST', params)

// 判断是否可以添加限制员工查看品牌
api.PlugCan = params => request.globalRequest('/api/Plug/PlugCan', 'POST', params)

// 商家品牌列表
api.StoreFactory = params => request.globalRequest('/api/Goods/StoreFactory', 'POST', params)

// 设置商家分类板块名称
api.AddStoreCategory = params => request.globalRequest('/api/Category/AddStoreCategory', 'POST', params)

// 设置二级分销商提成
api.StoreUpDistributorRoyalty = params => request.globalRequest('/api/Store/UpDistributorRoyalty', 'POST', params)

// 用户动态
api.BrowseUserItem = params => request.globalRequest('/api/Browse/BrowseUserItem', 'POST', params)

// 商家物流
api.LogisticsList = params => request.globalRequest('/api/Address/LogisticsList', 'POST', params)

api.UpdateLogistics = params => request.globalRequest('/api/Address/UpdateLogistics', 'POST', params)

api.UpLogistics = params => request.globalRequest('/api/Address/UpLogistics', 'POST', params)

api.LogisticsDel = params => request.globalRequest('/api/Address/LogisticsDel', 'POST', params)

// 我的活动
api.MatchActivityList = params => request.globalRequest('/api/Match/MatchActivityList', 'POST', params)

api.MatchActivityRuleInfo = params => request.globalRequest('/api/Match/MatchActivityRuleInfo', 'POST', params)

api.UpMatchActivity = params => request.globalRequest('/api/Match/UpMatchActivity', 'POST', params)

api.matchList = params => request.globalRequest('/api/Match/RankList', 'POST', params)

// 优惠券
api.CardList = params => request.globalRequest('/api/Coupon/CardList', 'POST', params)

api.CouponAdd = params => request.globalRequest('/api/Coupon/Add', 'POST', params)

api.CouponAccreditList = params => request.globalRequest('/api/Coupon/CouponAccreditList', 'POST', params)

api.AddCoupon = params => request.globalRequest('/api/Coupon/AddCoupon', 'POST', params)

api.DelCoupon = params => request.globalRequest('/api/Coupon/DelCoupon', 'POST', params)

api.CouponOut = params => request.globalRequest('/api/Coupon/Out', 'POST', params)

// 足迹
api.AddFoot = params => request.globalRequest('/api/Foot/AddFoot', 'POST', params)

// 意向客户
api.CustomerLists = params => request.globalRequest('/api/Store/CustomerLists', 'POST', params)

// 意向客户
api.ManualLists = params => request.globalRequest('/api/Manual/Lists', 'POST', params)

// 每日推送
api.pushData = params => request.globalRequest('/api/Store/StoreData', 'POST', params)

// 每日推送员工列表
api.pushStaffList = params => request.globalRequest('/api/Store/StaffList', 'POST', params)

// 每日推送员工列表
api.StoreFlow = params => request.globalRequest('/api/Store/StoreFlow', 'POST', params)

// 设置用户备注
api.UserRemark = params => request.globalRequest('/api/User/UserRemark', 'POST', params)

// 获取分组信息
api.SelectStoreGroup = params => request.globalRequest('/api/Store/SelectStoreGroup', 'POST', params)

// 获取分组信息
api.UserStoreGroup = params => request.globalRequest('/api/Store/UserStoreGroup', 'POST', params)

// C端首页模块排序数据
api.GetIndexSort = params => request.globalRequest('/api/Store/GetIndexSort', 'POST', params)

// 修改首页模块排序
api.UpIndexSort = params => request.globalRequest('/api/Store/UpIndexSort', 'POST', params)

// 风格列表
api.StyleList = params => request.globalRequest('/api/Style/StyleList', 'POST', params)

api.StyleDel = params => request.globalRequest('/api/Style/StyleDel', 'POST', params)

api.UpStyleSort = params => request.globalRequest('/api/Style/UpStyleSort', 'POST', params)

api.AddStyle = params => request.globalRequest('/api/Style/AddStyle', 'POST', params)

api.UpdateStyle = params => request.globalRequest('/api/Style/UpdateStyle', 'POST', params)

api.BalanceDetail = params => request.globalRequest('/api/Wallet/BalanceDetail', 'POST', params)

export default api